﻿using B.T.BasicData.ErrorCode;
using B.T.BasicData.Write_Api.DTO;

namespace B.T.BasicData.Write_Api.RBAC.IServices
{
    public interface IRoleServices
    {
        /// <summary>
        /// 角色添加
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> AddRole(AddRoleDto dto);

        /// <summary>
        /// 删除角色信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> DeleRole(DeleRoleDto dto);

        /// <summary>
        /// 更新角色信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> UpdateRole(UpdateRoleDto dto);
    }
}
